:root {
    --primary: #4361EE;
    --primary-light: #4895EF;
    --primary-dark: #0a26b2;
    --secondary: #7209B7;
    --light: #F8F9FA;
    --dark: #212529;
    --gray: #6C757D;
    --light-gray: #E9ECEF;
    --success: #4CC9F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --facebook: #000000;
    --twitter: #000000;
    --linkedin: #000000;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  
  }
  
  body {
    font-family: 'Outfit', sans-serif;
    background-color: #0e113c;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--dark);
  }
  
  .calculator-container {
    width: 100%;
    max-width: 1000px;
  
  }
  
  .calculator-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    animation: slideIn 0.5s ease-out forwards;
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .calculator-header {
    background: #fdb62a;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .calculator-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    font-family: "Outfit", Sans-serif;
    color: var(--dark);
  }
  
  .calculator-header p {
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 15px;
    font-family: "Outfit", Sans-serif;
    color: var(--dark);
  }
  
  .header-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: rgba(0, 0, 0, 0.2);
  }
  
  .social-links {
      display: flex;
      gap: 15px;
      margin-top: 30px;
    }
    
    .social-link {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #0e113c;
      color: #ffffff;
      transition: var(--transition);
    }
    
    .social-link:hover {
      background: var(--primary-light);
      transform: translateY(-2px);
    }
    
    .social-link i {
      font-size: 0.9rem;
    }
  .social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
  }
  
  
  .social-icon {
    display: flex;
    
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #000000;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    animation: bounceIn 0.6s ease-out forwards;
  }
  
  .social-icon:nth-child(2) { animation-delay: 0.1s; }
  .social-icon:nth-child(3) { animation-delay: 0.2s; }
  
  @keyframes bounceIn {
    0% {
      opacity: 0;
      transform: scale(0.3);
    }
    50% {
      opacity: 1;
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
  }
  
  .social-icon:hover {
    transform: scale(1.1) rotate(5deg);
  }
  
  .social-icon.facebook {
    background: var(--facebook);
    
  }
  
  .social-icon.twitter {
    background: var(--twitter);
  }
  
  .social-icon.linkedin {
    background: var(--linkedin);
  }
  
  .calculator-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
  }
  
  .input-group {
    margin-bottom: 25px;
  }
  
  .input-group.apy-group .input-wrapper {
    background: rgba(67, 97, 238, 0.05);
    border-radius: 8px;
    padding: 5px;
    position: relative;
  }
  
  .input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
  }
  
  .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .currency-symbol {
    position: absolute;
    left: 15px;
    font-weight: 600;
    color: var(--primary);
    z-index: 2;
  }
  
  .input-field {
    width: 100%;
    padding: 15px 15px 15px 35px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
    background: white;
  }
  
  .input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
  }
  
  .input-field.apy-field {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    padding: 15px;
    cursor: default;
  }
  
  .input-field.apy-field:hover {
    background: rgba(67, 97, 238, 0.1);
  }
  
  .input-field.apy-field.animate-update {
    animation: updateValue 0.3s ease-out;
  }
  
  @keyframes updateValue {
    0% {
      opacity: 0;
      transform: scale(0.8);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  .input-field.apy-field[title]:hover:after {
    content: attr(title);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    animation: fadeInTooltip 0.3s ease-out forwards;
    z-index: 10;
  }
  
  @keyframes fadeInTooltip {
    to {
      opacity: 1;
    }
  }
  
  .quick-amounts {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
  }
  
  .amount-btn {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    color: var(--gray);
  }
  
  .amount-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
  }
  
  .amount-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    animation: pulse 1.5s infinite ease-in-out;
  }
  
  .duration-selector {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
  }
  
  .duration-btn {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    color: var(--gray);
  }
  
  .duration-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
  }
  
  .duration-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    animation: pulse 1.5s infinite ease-in-out;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
      box-shadow: var(--shadow-sm);
    }
    50% {
      transform: scale(1.03);
      box-shadow: var(--shadow-md);
    }
    100% {
      transform: scale(1);
      box-shadow: var(--shadow-sm);
    }
  }
  
  .divider {
    height: 1px;
    background: var(--light-gray);
    margin: 30px 0;
  }
  
  .result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
  }
  
  .result-label {
    color: var(--gray);
  }
  
  .result-value {
    font-weight: 600;
    color: var(--dark);
  }
  
  .result-value.animate-result {
    animation: slideUp 0.3s ease-out;
  }
  
  .result-value.highlight {
    color: var(--primary);
    font-weight: 700;
  }
  
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .action-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }
  
  .action-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
  }
  
  .action-btn:active {
    transform: scale(1);
  }
  
  .disclaimer {
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
  }
  
  /* Modal Styles */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .modal-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .modal-container {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    opacity: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }
  
  .modal-overlay.active .modal-container {
    transform: scale(1);
    opacity: 1;
  }
  
  .modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
  }
  
  .modal-header h3 {
    color: var(--dark);
    text-align: center;
    font-size: 1.3rem;
  }
  
  .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
  }
  
  .close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
  }
  
  .modal-body {
    padding: 25px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
  }
  
  .form-group label .required {
    color: #ff0000;
  }
  
  .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
  }
  
  .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
  }
  
  .form-control::placeholder {
    color: #999;
  }
  
  .form-control[type="textarea"],
  .form-control:where(textarea) {
    height: 100px;
    resize: none;
  }
  
  .form-footer {
    margin-top: 30px;
  }
  
  /* Loading spinner */
  .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  /* Success message */
  .success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1001;
    max-width: 90%;
  }
  
  .success-message.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
  }
  
  .success-icon {
    font-size: 3.5rem;
    color: var(--success);
    margin-bottom: 15px;
  }
  
  .success-message.active .success-icon {
    animation: bounce 0.5s ease-out;
  }
  
  @keyframes bounce {
    0% {
      transform: scale(0.5);
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
  }
  
  .success-message h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
  }
  
  .success-message p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.9rem;
  }
  
  /* Responsive styles */
  @media (max-width: 768px) {
    .calculator-card {
      grid-template-columns: 1fr;
    }
    
    .calculator-header {
      padding: 30px 25px;
    }
    
    .calculator-body {
      padding: 30px 25px;
    }
    
    .calculator-header h3 {
      font-size: 1.8rem;
    }
  }
  
  @media (max-width: 480px) {
    .quick-amounts, .duration-selector {
      grid-template-columns: 1fr 1fr;
      gap: 5px;
    }
    
    .amount-btn, .duration-btn {
      width: 100%;
    }
  }